home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
Libraries
/
DCLAP 6d
/
dclap6d
/
network
/
apple.old
/
GetMyIPAddr.h
< prev
next >
Wrap
Text File
|
1996-07-05
|
617b
|
28 lines
/*
GetMyIPAddr.h
C definitions of parameter block entries needed for IP calls
Copyright Apple Computer, Inc. 1989
All rights reserved
*/
#define ipctlGetAddr 15 /* csCode to get our IP address */
#define ParamBlockHeader \
struct QElem *qLink; \
short qType; \
short ioTrap; \
Ptr ioCmdAddr; \
ProcPtr ioCompletion; \
OSErr ioResult; \
StringPtr ioNamePtr; \
short ioVRefNum; \
short ioCRefNum; \
short csCode
struct IPParamBlock {
ParamBlockHeader; /* standard I/O header */
ip_addr ourAddress; /* our IP address */
long ourNetMask; /* our IP net mask */
};